// 人气推荐的功能
import { ref } from 'vue'
import { findHot } from '@/api/home'
export function useHot () {
  const hotData = ref([])
  async function loadhotData () {
    const res = await findHot()
    hotData.value = res.data.result
  }
  loadhotData()

  return {
    hotData
  }
}
